
import request from '@/utils/request';
import { Result } from './definitions/Result';
import { CarQueue } from './definitions/CarQueue';
import { ResultListCarQueueResponse } from './definitions/ResultListCarQueueResponse';


export class CarQueueController {

    static updateUsingPUTPath: string = "/v1/api/carQueue";
    /// update
    async updateUsingPUT(data: CarQueue, headers?: any):  Promise<any> {
      return request(`/v1/api/carQueue`, {
        method: "PUT",
        data: JSON.stringify(data) ,
        headers: headers,
      }) as Promise<any>;
    }
    
    static allWaitingListUsingGETPath: string = "/v1/api/carQueue/allWaitingList";

    async allWaitingListUsingGET( headers?: any) : Promise<ResultListCarQueueResponse> {
      return request(`/v1/api/carQueue/allWaitingList`, {
        method: "GET",
        headers: headers,
      }) as Promise<any>;
    }
    
    static selectOneUsingGETPath: string = "/v1/api/carQueue/selectOne";

    async selectOneUsingGET(id: any,  headers?: any) : Promise<CarQueue> {
      return request(`/v1/api/carQueue/selectOne?id=${id ?? "" }`, {
        method: "GET",
        headers: headers,
      }) as Promise<any>;
    }
    
}